import apibase from "@/api/apiBase";
import axios from "axios";

//获取险种属性配置列表
export const $getAttrList = () => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/travel/insurance/getAttrList',
    data: {},
    instance,
  });
}
//添加险种属性配置
export const $addAttr = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/travel/insurance/addAttr',
    data: params,
    instance,
  })
}
//编辑险种属性配置
export const $editAttr = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/travel/insurance/editAttr',
    data: params,
    instance,
  })
}